import request from '@/utils/request'

export function queryPage(query) {
  return request({
    url: '/BaseDataController/querySalaryTypeBaseDataPage',
    method: 'get',
    params: query
  })
}

export function submitData(data) {
  return request({
    url: '/BaseDataController/submitSalaryBaseData',
    method: 'post',
    data: data
  })
}

export function deleteBatchData(ids) {
  return request({
    url: '/BaseDataController/deleteSalaryBasedata/' + ids,
    method: 'delete'
  })
}

export function deleteSalaryType(data) {
  return request({
    url: '/BaseDataController/deleteSalaryType',
    method: 'post',
    data: data
  })
}
